package com.zj.HJ;

import java.util.Scanner;

public class HJ82 {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNext()) {
            String num = sc.nextLine();
            System.out.println(getRes(num));
        }

    }

    public static String getRes(String num) {
        String[] split = num.split("/");
        int res1 = Integer.parseInt(split[1]) / Integer.parseInt(split[0]);
        int mod = Integer.parseInt(split[1]) % Integer.parseInt(split[0]);
        if (mod == 0) {
            return "1/" + res1;
        } else {
            res1 = res1 + 1;
            int fenzi = Integer.parseInt(split[0]) * res1 - Integer.parseInt(split[1]);
            int fenmu = Integer.parseInt(split[1]) * res1;
            return "1/" + (res1) + "+" + getRes(fenzi + "/" + fenmu);
        }
    }


}
